package chat.whiteboard.components;

import java.awt.event.ActionListener;

import javax.swing.Action;
import javax.swing.Icon;
import javax.swing.JButton;

import chat.whiteboard.WhiteBoardController;


public class CircleButton extends JButton implements ICommand {
	private WhiteBoardController controller = null;

	public CircleButton(ActionListener act,WhiteBoardController controller) {
		this.controller = controller;
		addActionListener(act);
		controller.registerCircleButton(this);
	}

	@Override
	public void execute() {
		System.out.println("Circle Button");
		controller.startCircleState();
	}

}
